package com.oig.sys.base.service;

import com.oig.sys.base.dto.CurrRateDto;
import com.oig.sys.base.vo.CurrRateHisVo;
import com.oig.sys.base.vo.CurrRateVo;
import com.oig.sys.base.vo.CurrencyVo;

import java.time.YearMonth;
import java.util.List;


/**
 * @author wuxl
 */
public interface ITbCurrRateService {


    CurrRateVo addTbCurrRate(CurrRateDto currRateDto) ;

    CurrRateVo updateTbCurrRate(CurrRateDto currRateDto) ;

    CurrRateVo getCurrRateByCurr(String currency, String type) ;

    void delTbCurrRate(Integer id);

    List<CurrRateVo> findAllByType(String type);

    /**
     * 根据历史汇率表数据，添加币种的海关汇率
     *
     * @param currencyVos    币种列表
     * @param currRateHisVos 历史汇率表数据
     * @return 返回海关汇率数据
     */
    List<CurrRateVo> addCustomsRate(List<CurrencyVo> currencyVos, List<CurrRateHisVo> currRateHisVos);

    List<CurrRateVo> findAllByCurrAndYearMonth(List<String> currency, YearMonth yearMonth, String type);

    List<CurrRateVo> listAll();
}
